Handling bad buffers in Mesh::deserialize