Fix: API 500 error when project does not exists