more rigorous undefined check for IE8 in native IE8 mode