Fix display of residuals before displaying error message

The computed steady state was not updated.
Fix model_diagnostics.m for case where check1 contains NaN as second output

Also stops execution when steady state could not be computed as Jacobian at this incorrect steady state is wrong.