Fix crash when deleting all points from a line.