Restore 2.8 behaviour which returns "localhost" for an empty url.

Fixed behaviour that caused an index out of bounds exception when merging
local metadata and causing 10s of the Maven ITs to fail. All Maven ITs
pass now using master.
1 file changed