TDQ-9613: fix from a Task, GO TO function often throws an unexpected
exception