fix the creation of workpackages when a validation-error occurs

added missing :locals to the render-call of create; fixed the highlighting in the menue for workpackages. (see [#1789](https://www.openproject.org/issues/1789))