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

...t
If you have to remove it then seems like there is something else wrong that needs to get fixed, could be the test data that is invalid because you should never have to do this.