Fix error handlin in case exception happens in fixture loading

The problem here is that the output buffering is already reset, but we
try to use it.