Trafficmodel: changed the way how the index of the first waypoint is retrieved