Fix problem in jasmine strategy when an error is thrown in test function.
The expectation result api is restored now, even when an error is thrown from the test function.