Fix issue with resource_parent in FOSS instances
With the introduction of access request todos for groups in issue #374608 (closed), a bug got introduced for FOSS instances in 15.7 version of gitlab.
These new todos are not related to any project as they are for access requests raised for groups so the resource_parent for them will be nil for FOSS instances, refer https://gitlab.com/gitlab-org/gitlab/-/blob/master/app/models/todo.rb#L180, which expects a project
to be the resource_parent.
Edited by Hitesh Raghuvanshi