Fixed an issue where child states with empty route would create an invalid route.