popstate null handling