route: Fixing segfault issue for Hyperbolic Routing Table Calculation

Refs: #1815

Change-Id: I317259d299e4117f0846ed98c432b39d1404b643