BUG:  WorkflowFieldItemController::doSave() when the object is a newly created

BUG: when a edit form in WorkflowFieldItemController doesn't load a record, when saving it, $form->getRecord() return null, so we need to reassign the the current $record to be the object that the form is saved into.