Fix assertion failure when trams do a short turnaround in a tunnel mouth