Nullify pool_repository when a project leaves
What does this MR do?
Backport the line required in: https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/9070
Backport the line required in: https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/9070