fix #617 InputValidationHandler issue

A javascript error was raised in the following use case:
inside a container having scrollbars, a field is in error,
the field is focused (so that the error tooltip is open),
scroll the container with the mouse wheel.
Mobile Touch Widgets