fix(debugger): restrict condition check to applicable tasks

- avoids evaluation breakpoint scripts for tasks that do not match the
  breakpoint's task and therefore avoids issues with undefined variables