[FIX] Internal error when deleting a project without checking Yes

Fixes https://www.openproject.org/work_packages/3725

* `#3725` Fix: Trying to delete a Project without checking "Yes" results in Error