It's currently impossible to run the tests on safari via saucelabs. This patch fixes the problem.