Revert of Try to figure out where the page state with invalid referrers comes from...