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.
Merge pull request #1274 from lioncash/uninit

TASInputDlg: Fix some potential uninitialized variable warnings.