Fix/error message custom fields

Fixes https://www.openproject.org/work_packages/4331