don't send empty messages (issue #245)