When resolving a URI against a base, behave correctly if the base has no path components but is absolute (i.e., the path is '/')