Bug/bitcoind crash

Solves https://github.com/bitpay/insight/issues/261