ListEditor: changed method of determining next ID for addWaypoint