Prevent endless loop in IE due to unsuccessful correction of invalid
selection.
Merge pull request #1116 from npomaroli/hotfix-prevent-endless-loop-ie

Prevent endless loop in IE due to unsuccessful correction of invalid