Fix IE11 sniffing. Fixes #17311.
(cherry picked from commit f58c0e19ce509398985908688a768c8fb41191b8)