Core/Group: Fix crash in "Group::GetMembersCount"

closes: #9350
Merge pull request #11071 from gerripeach/group_crash

Core/Group: Fix crash in "Group::GetMembersCount"