wordnet: Fixed TCL/TK Errors

Closes #21188.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>