fix(raft/protobuf): avoid panic on unexcepted data

#829
@philips here