Fixed 500 on validation errors in project update with backlogs enabled

Implements https://www.openproject.org/work_packages/4862