DDF-318 Added checks before use of console global variable for ie8