This fixes a 0/0 bug in IE8

The 0/0 results in NaN which other browser handle fine but IE8
and probably IE8- choke on.