fix bug for 0 transaction wallet

0 transaction wallet would return an error when getting transaction list