[ticket/10820] Fix conditions to check for IE

PHPBB3-10820