Fixes 500 error caused by pending delete projects in admin dashboard Closes #35453 See merge request !13067