libertas: fix write past end of array in mesh_id_get()