TRUNK-2498: Validate email address in user options page fixed

Against OpenMRS 1.8.x:
https://tickets.openmrs.org/browse/TRUNK-2498