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

...t
I throws APIException and changes are still saved to the database.