Merge "Do not rely on `getTaskViewCount` to iterate TaskViews" into main