Fix callback for res.on('end')

`err` should be undefined if we've successfully gotten data