route: Preventing small bug with accessing of unallocated memory

Change-Id: I79c2099b2400aca78bbdb6d7de2f68d3f659e2b6