Only assign `agent` if it's explicitly set

node v0.11.x seems to have issues, even if it’s `undefined` or `null`
0.2.1