[ticket/10820] fix if condition to check for IE

PHPBB3-10820