fix console existence checking for ie7
Merge pull request #165 from hampei/fix_console_checking

fix console existence checking for ie7