[uri] Handle an empty unparse_uri() result properly