Fix bug in calculation of Route/Record-Route headers