Fix a problem with a failing test causing the test runner to freeze when running the tests with a local Selenium server.