Add error handling to AccountEntries#calc_balances.