TASInputDlg: Fix some potential uninitialized variable warnings.

Also guard against null (even if it doesn't happen it stops more warnings if someone compiles with -Wall or runs analysis with clang.