[fixes #202] more defensive jqxhr check. Apparently sometimes it can be
null/undefined.
Merge pull request #362 from stefanpenner/more-defensive-jqxhr-check

[fixes #202] more defensive jqxhr check. Apparently sometimes it can be