Fixed bug in the web frontend

After the latest changes (the maximum iteration feature), adding new projects would fail.