Check for 0-length routes and paths.
Test 0-length paths and routes.
Merge pull request #7 from reem/handle-0-length-path

Handle 0-length paths and routes