agent: set `req._hadError` to true after emitting "error"

node-core does this so it's probably a good idea...