Check if group exists on a group_relation before passing it to...
Check if group exists on a group_relation before passing it to GroupAccessResult::allowedIfHasGroupPermissions().
Not sure if this is the right fix, creating a MR to see how automated tests respond to it.