CORE-5083: fixed a bug in the metadata_attribute_synonyms function