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

#829