Allow contextual routers to handle "index pages"

Allows the contextual router to match the "/" route when there is no
unmatched portion of the route remaining from the parent. For example,
if the route `/profile` matches a contextual router, then the contextual
router will match its `/` route. Previously, this caused an invariant
violation.