Fix Karma crash if the test times out