bugfix for the cases where window.location.search and window.location.ha...

...sh are both non-empty; ie. "?foo=123#bar=abc" was resulting in erroneous return value