Fix some crashes when rebuilding index
Merge branch 'develop' of github.com:BitShares/bitshares_toolkit into develop