Fixed NullPointer when no routes returned