Issue #570: Use http.globalAgent as agent if no agent is explicitly specified.