Issue #1202: JavaScript exceptions thrown in IE8 when focusing fields
Fixed

(cherry picked from commit e88ded6e9c4282b95699afaa0a5cbc63120f4e88)