Remove the # mark when location.hash == ""

Example: Closing the settings panel
settingsNavigation/console: Avoid calling resetUrlHash twice

While moving back and forth through history, resetUrlHash should not
be called again, as that creates superfluous pages in history.
Merge pull request #725 from mc10/urls

Remove the # mark when location.hash == ""