Fix issue where children of selected and collapsed thread were skipped on various actions (#1489457)