minor fixes in module entity_reference_primary_media