Minor refactoring in TaskVariableQueryDialog.
TaskVariableQueryDialog is now cancelable.