xhr2: fix httpAgent & httpsAgent members declaration

- this is one of _how did that ever worked?_