make update wallet more robust
make update wallet more robust

bitpay/bitcore,martindale/bitcore,martindale/bitcore,bitjson/bitcore,bitjson/bitcore,bitpay/bitcore,bitjson/bitcore,martindale/bitcore,martindale/bitcore,bitpay/bitcore,bitpay/bitcore,bitjson/bitcore