PIM-2341 : fix hasLocaleCode and hasScopeCode in CatalogContext