Fix crash on moving a vertex in a map with no lines