fix segv on testcase 200_unknown_fields_discard