Bug fix: preventing NPE when the locale is changed after a validation
form has failed