def _remove_nullvalue(contents):
    """ Removes nullvalue placeholders required to prevent key errors"""
    if contents and len(contents) > 2 and 'nullvalue' in contents:
        contents.remove('nullvalue')
