Fix crash when test fail

When test fails before the coverage object was created, the runner
crashes while trying to show result.