Fix browser detection in IE10.
(cherry picked from commit 747db11)