Passing to default path handler only if single path element is not a function