Merge pull request #19 from sergeykalenyuk/improvement

Improve "Headers already sent" log message.
Merge upstream changes from CE 1.9, do not log error message if sendHeaders called with no new headers.