Checking for null values
Move function getTransactionHistoryCsv to wallet
Added test to transactionHistoryCvs
Test fixed
Code cleaned
Added jsdoc
Fixing style
Test fixed and added error checks
Merge pull request #1879 from matiaspando/iss1857

Fixing transaction history CSV download