Merge "Check before casting to TaskMenuView on rotation" into main