TRUNK-4429: Add check that default locale is amongst allowed locales lis...

...t
here too, just compare the locale objects