Don't log an empty string on every stdout/err flush

This made for a lot of log events with empty strings
in them.
Merge pull request #158 from sbt/wip/havocp-empty-log-on-flush

Don't log an empty string on every stdout/err flush