Added type check for console.log to prevent IE8+modernizr issues

Potential solution for issue https://github.com/novus/nvd3/issues/199