Handle divide by zero in constant evaluator