Fix SetPersmission crash in Sitemap

Accessing the Group Object as an array causes PHP to crash. Use the Group::getGroupID() method instead