removing unneeded null check in emitted enum marshallers