fix longstanding edge case for form validation

http://manage.dimagi.com/default.asp?91563