Adding check for divide by 0 in the evaluator