Invalid argument error when editing a workflow which was created with no states and/or transitions