fix storing MetadataFacet at repository level with empty values