route: Allow 0 cost in hyperbolic calculation

refs: #1982

Change-Id: I6ffe677d59dcb559f344b7d648600e9537d9c4f5