Fixes a bug in the list_orders_by_next_token method