router: fix in case of no popstate on load