handle null responses from servers

addresses the same issue (and same fix) as this outstanding pull request in the core project: https://github.com/driverdan/node-XMLHttpRequest/pull/68