Manage Groups selector includes empty rows for groups that user does not have permission for

Details

Description

If you go to Manage Groups when logged in as a user who has permission to only a subset of all groups (based on ACLs) - the selector shows empty rows for the non-permitted groups. You can see this on the sandbox by logging in as:

I think this is side-effect of the partially implemented child group feature. If you look at the $rows array passed to Group/Page/Group.tpl - you'll see that the non-permitted group items are empty EXCEPT for the "children" element. In example below - group 1 is a non-permitted group for this user: