FIX: Invites when no group is selected (PR #10201)

GitHub