Correctly compare null values in the evaluator

Fies bug #17244