Fix bugs in isTransactionFunded.