fix for possibly null routeId, tripId