Handle division by zero