Fix result reporting when a test stops and restarts QUnit