Fix bug that caused data to be unreadable from namecoind sometimes.

Test case: put update.mode=all in plugin-data.conf (assuming you're already configured to update from namecoind), and run in debug mode.  Without this patch you'll get an error after about 15 seconds, and the blockchain data won't be loaded.  With this patch the update succeeds after about 25 seconds and the blockchain data is loaded successfully.