IE console issue fix (Issue #1321)

The console should be checked for before we attempt to use it.