Fixes item icon state when for issues that have the same labels assigned
What does this MR do?
Previously if all issues had the same labels the dropdown was showing the labels with indeterminate stated which is wrong. This MR fixes that and shows the correct state.
What are the relevant issue numbers?
Fixes #18714 (closed)
Screenshots (if relevant)