Fix issue #8129

Prevent $this->resourceArray['resource_groups'] from being undefined.