Fix a crash when instrumentation fails