Fix assertions in protobuf_stream.hpp