Bugfix for logging lines without or delayed newlines

I found a solution for the issue
https://github.com/elasticsearch/logstash-forwarder/issues/149