Shim console if it doesn't exist

This allows you to intercept console in IE9/IE8 when the dev
tools are not open.