[fix] new XMLHttpRequest always returns an object