Make sure path leading slashes aren't added for empty hosts
Merge pull request #728 from jamiehannaford/empty-hostname-fix

Make sure path leading slashes aren't added for empty hosts