avoid computing alternative currency rate when no txs in history

Fixes #1920