Add an assertion to make sure we are not dividing by zero. 

Found by scan-build (clang/llvm 3.3)

Not really sure how likely it this for it to happen, but I figured it might be better to err on the safe side.

(It generated a report as an HTML file, though I can't find any obvious way to attach that here...)