(Issue #3715) Handle out-of-order xhr completions