Fix hashMode's initial path query when there is no # in the url yet