fix optional enum issue

this should do it, see https://github.com/alphaHeavy/protobuf/issues/11