A fix for getbalance "account"

The RPC command getbalance "account" returns random
numbers. This fixes that.
Merge branch 'getBalanceFix'