Added cGroup resource

The resource xGroup throws an error if the desired group does not exist. Added a check for null before adding $group to $disposables.