Fix two bug in resol that lead to crashes instead of error messages when loglinear option was used and steady state were negative

(cherry picked from commit 39bfc1dd041a991ade9a776fcda08f2102da5c78)