TaskRunDialog: Fixed error handling