Don't blow up when messages are empty.
When we can't write, don't write.