Fix spUrlToUri for path-less URLs, for root site

The root site's display URL is of the form http://host, which breaks the
assumption that the split will return four items. This was previously
unnecessary because we weren't using spUrlToUri for such URLs, but this
was changed when we fixed handling spaces in Site names.
2 files changed