TS-2624: Divide by zero check.