Only send messages if there is actually content.