add error handling for adding and delete projects
The script fails when a project was delete but still is present in projects.json (like 1033 mathoid). This change adds error handling to make sure the script continues with the other projects. An error is reported back to the user.
Bug: T350679