Fixed an alignment issue and the sending of blank messages.

Fixed an alignment issue with the default and terminal themes and
prevented the sending of a blank string.
Changed themes dialog to close when the escape key is pressed.