Handle 0-length paths and routes

Right now passing "" as a route or path causes task failure. This causes
it to behave like "/", a sane default, instead.