Bugfix: IE compatibility: Only using console when present.