Fix division by zero failure in Mpq

It was failing when the numerator was zero, rather than the denominator.