Fix handling of todos for deleted issues