Guard against a division by zero.