fix initial back button on non-broken browsers

missed this the first time through. when you press back button after routing on browsers that do not call `popstate` immediately, then we accidentally ignore that dispatch.

Also realized my first check was checking the variable `history` and not `window.history` for state.