Handle diff_rows returning infinity.

(not sure why it would return infinity since there is a check that the numerator and denominator are not 0)