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.