Bug 1057734 - Protect against divide by zero