Added a check to see if the passed url hash routes to an actual page.  If so, change view and sidebar.  Otherwise, do nothing.  This prevents TypeError from being thrown.