Added code to check if theme selection is valid when adding or editing a
word.  This prevents the user from saving a word with a theme named
"--none--".