Fixing IE crash when dev tools isn't open and we log or warn.