Update Get-LocalGroups.ps1

Fixed issue with "Index was outside the bounds of the array" errors when a machine can't be contacted or a group does not exist.