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

...t
Same here, it should the locales you compare and not languages