fix when xhr is not created, we attempt to use xhr.done()