Fix checking if headers are already sent

Seem simply a wrong variable name. This problem was really noticeable with http-proxy:
https://github.com/nodejitsu/node-http-proxy/pull/388