Catches div by zero error