Fix error when updating job and workflow validation fails #517