FIX: Incorrect fix for invites breaking when no group is selected (PR #10202)

GitHub