Fixed error with Url's with no path.  Now all parts of the url are checked before setting parameters.