Protect against division by zero.