Correctly handle URIs without path