Fix two bugs in resol that lead to crashes instead of error messages when...

... loglinear option was used and steady state were negative