Avoid console errors on browsers that lack a console