Fix issue #8129
Prevent $this->resourceArray['resource_groups'] from being undefined

* origin/pr/12115:
  Fix issue #8129