Perform null checks in ConstantEvaluator