Fix PhantomJS/Mocha error.