Fix typo, extra check for hasProtoEnumBug