Fix for sending empty messages

A fix for preventing users from sending empty messages