distinguish between missing address and database error

refs https://github.com/conformal/btcwallet/pull/138