Fix false positive in IE9/10 selection reset workaround hack

Closes #1820