[PATCH 5.12 674/700] lib/math/rational.c: fix divide by zero