added support for tracking 'Content-Length' via res.writeHead

Usage of res.writeHead is very common prior to "end", so this override will allow the tracking of 'Content-Length' so it is not lost if header is already written.