Patch res.headersSent for node.js 0.8