Fix infinite loop in RouteStore.unregisterRoute method

Simple fix