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

This made for a lot of log events with empty strings
in them.