Fix nullable enum constant comparison.