IE9 window.console bugfix

Fixed one of many javascript bugs in <IE10, this one pertaining to an error thrown when the window.console doesn't exist which doesn't happen unless developer tools are open