Make sure block-decomposed model returns with correct error code if I…
…nf or NaN is encountered
Missing from 5f85d3a2 where only residual was set to error code. If oo_.deterministic_simulation.status is not set to 0, model will erroneously be considered as solved and homotopy will not be triggered.