Added check before adding URI to departure in vias