fix: if mean residual can not be computed, cmonkey was crashing when trying to log the mean residual, write a 1.0 instead