Abort pending XHR in popstate handler

This fixes the bug where, if the user clicks back while a PJAX request is loading, the originally requested page is displayed anyway once the XHR response arrives.
Well, if this is not necessary for this test, I'd like to see it removed.