Prevent condition of division by zero

I found this issue testing a site on IE8