Fix the xhr_delay being called on every request.

fixes #3695
Merge pull request #3696 from mozilla/issue_3695_xhr_delay

Fix the xhr_delay being called on every request.