fix for IE. silently prevent log when console not available