Fix notice for unset txn_type index