Only access the header of xhr is present

Won't be present when you hit the back/forward button