Use !this.xhr for testing in cleanup method

(!this.xhr) is used to check both undefined and null, see issue #180 

However, since Request module is private, I couldn't figure out a way to write a test case either :/