Prevent empty messages from being sent

Fixes #11