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

null/undefined.