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

...t
What is the use of this?