Handle errors while a project is being deleted asynchronously. Closes #29289 See merge request !11088