Fix weird agent behaviour when a TypeEeError occurs in a method (TUI-106)