Fix error handling if no xml is returned by the XMLHttpRequest