Protect against possible divide by zero. Cppcheck

Signed-off-by: Stuart Morgan <smorgan@mythtv.org>