Avoid segfault in Protobuf test destruction.