IE 9 console problem

Console message fails under IE - in that browser console is only defined if dev tools are opened.

Introduced check for console existence, and message is output only if object exists.