Protect against possible divide by zero.  Cppcheck