Prevent a possible divide by zero crash.