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.