Fix infinite loop in RouteStore.unregisterRoute method