Handle an empty XHR response better