Merge branch 'bvl-fix-deleting-forked-projects' into 'master'
Fix errors when deleting a forked project
Closes #39196
See merge request gitlab-org/gitlab-ce!14916
(cherry picked from commit 85d8ab52)
2c0b6776 Fix errors when deleting a forked project