Fixed finding route by pattern when route pattern is empty