Check for null on abortXhr

Not sure if it also needs to be build (and if yes how to build it)