fix regression in mocha_phantomjs