Check empty messages

Don't send empty messages.
Don't send a "MessageSent" callback when sending a command.