message: [types] Fix verify_get_txns_resp when zero txns returned
  Closes:
  Approved by: huitseeker
diff: @@ -411,16 +411,15 @@ fn verify_get_txns_resp(
  req_fetch_events: bool,
  txn_list_with_proof: &TransactionListWithProof,
  ) -> Result<()> {
  + if req_limit == 0 || req_start_version > ledger_info.version() {
  + txn_list_with_proof.verify(ledger_info, None)
  + } else {
  ensure!(
  req_fetch_events == txn_list_with_proof.events.is_some(),
  "Bad GetTransactions response. Events requested: {}, events returned: {}.",
  req_fetch_events,
  txn_list_with_proof.events.is_some(),
  );
  -
  - if req_limit == 0 || req_start_version > ledger_info.version() {
  - txn_list_with_proof.verify(ledger_info, None)
  - } else {
  let num_txns = txn_list_with_proof.transaction_and_infos.len();
  ensure!(
  cmp::min(req_limit, ledger_info.version() - req_start_version + 1)
  