avoid exception due to console miss on IE 8
Merge pull request #4172 from Costent/master

avoid exception due to console miss on IE 8