fixed editor crash bug occurring when deleting all waypoints (by long-clicking the trash can) when a waypoint detail window is opened.