Hide error on phantomjs

When using Travis CI to test pdf.js with phantomjs, this line throws an error:

TypeError: 'undefined' is not a function (evaluating 'globalScope['console']['log'].bind(globalScope['console'])')