CustomFormsPlugin: fixes update form with image
Fixes an error when trying to update a custom form with a new image. Also adds a code snippet to build the identifier (which is now a required field) before the validation, such as is already done with the slug.