node/chainstate: Remove do/while loop
node/chainstate: Remove do/while loop

I strongly recommend reviewing with the following git-diff flags:
  --ignore-space-change

jambolo/bitcoin,namecoin/namecore,pataquets/namecoin-core,ajtowns/bitcoin,jlopp/statoshi,sstone/bitcoin,anditto/bitcoin,fanquake/bitcoin,AkioNak/bitcoin,kallewoof/bitcoin,lateminer/bitcoin,particl/particl-core,tecnovert/particl-core,GroestlCoin/bitcoin,jambolo/bitcoin,Xekyo/bitcoin,sipsorcery/bitcoin,pataquets/namecoin-core,pataquets/namecoin-core,bitcoinsSG/bitcoin,kallewoof/bitcoin,jamesob/bitcoin,domob1812/bitcoin,fanquake/bitcoin,achow101/bitcoin,achow101/bitcoin,Xekyo/bitcoin,fanquake/bitcoin,fujicoin/fujicoin,lateminer/bitcoin,particl/particl-core,domob1812/namecore,pataquets/namecoin-core,sipsorcery/bitcoin,GroestlCoin/GroestlCoin,GroestlCoin/GroestlCoin,andreaskern/bitcoin,tecnovert/particl-core,kallewoof/bitcoin,tecnovert/particl-core,GroestlCoin/bitcoin,bitcoinknots/bitcoin,andreaskern/bitcoin,particl/particl-core,instagibbs/bitcoin,Xekyo/bitcoin,domob1812/namecore,bitcoinsSG/bitcoin,dscotese/bitcoin,Xekyo/bitcoin,dscotese/bitcoin,namecoin/namecoin-core,dscotese/bitcoin,jambolo/bitcoin,fanquake/bitcoin,instagibbs/bitcoin,domob1812/namecore,jambolo/bitcoin,bitcoinknots/bitcoin,mruddy/bitcoin,namecoin/namecore,tecnovert/particl-core,sstone/bitcoin,particl/particl-core,achow101/bitcoin,jlopp/statoshi,mm-s/bitcoin,instagibbs/bitcoin,jamesob/bitcoin,fanquake/bitcoin,andreaskern/bitcoin,bitcoinknots/bitcoin,namecoin/namecoin-core,Xekyo/bitcoin,mm-s/bitcoin,jamesob/bitcoin,sipsorcery/bitcoin,ajtowns/bitcoin,sstone/bitcoin,namecoin/namecore,namecoin/namecore,namecoin/namecoin-core,GroestlCoin/GroestlCoin,sipsorcery/bitcoin,AkioNak/bitcoin,dscotese/bitcoin,jlopp/statoshi,instagibbs/bitcoin,namecoin/namecoin-core,dscotese/bitcoin,bitcoin/bitcoin,domob1812/bitcoin,fujicoin/fujicoin,jlopp/statoshi,anditto/bitcoin,bitcoin/bitcoin,domob1812/bitcoin,andreaskern/bitcoin,lateminer/bitcoin,mruddy/bitcoin,achow101/bitcoin,GroestlCoin/bitcoin,kallewoof/bitcoin,fujicoin/fujicoin,pataquets/namecoin-core,domob1812/namecore,AkioNak/bitcoin,tecnovert/particl-core,bitcoin/bitcoin,fanquake/bitcoin,tecnovert/particl-core,jlopp/statoshi,jamesob/bitcoin,lateminer/bitcoin,achow101/bitcoin,anditto/bitcoin,namecoin/namecoin-core,lateminer/bitcoin,domob1812/bitcoin,jlopp/statoshi,kallewoof/bitcoin,bitcoinsSG/bitcoin,GroestlCoin/GroestlCoin,Xekyo/bitcoin,domob1812/bitcoin,mruddy/bitcoin,namecoin/namecore,domob1812/namecore,jambolo/bitcoin,bitcoinsSG/bitcoin,jamesob/bitcoin,sipsorcery/bitcoin,jamesob/bitcoin,domob1812/namecore,andreaskern/bitcoin,bitcoin/bitcoin,anditto/bitcoin,fujicoin/fujicoin,pataquets/namecoin-core,namecoin/namecore,particl/particl-core,GroestlCoin/bitcoin,ajtowns/bitcoin,GroestlCoin/bitcoin,bitcoinsSG/bitcoin,mruddy/bitcoin,sstone/bitcoin,ajtowns/bitcoin,fujicoin/fujicoin,ajtowns/bitcoin,domob1812/bitcoin,mm-s/bitcoin,ajtowns/bitcoin,namecoin/namecoin-core,bitcoin/bitcoin,bitcoinknots/bitcoin,kallewoof/bitcoin,particl/particl-core,mruddy/bitcoin,mm-s/bitcoin,AkioNak/bitcoin,GroestlCoin/bitcoin,AkioNak/bitcoin,mruddy/bitcoin,bitcoinsSG/bitcoin,bitcoinknots/bitcoin,AkioNak/bitcoin,sstone/bitcoin,instagibbs/bitcoin,achow101/bitcoin,sipsorcery/bitcoin,anditto/bitcoin,lateminer/bitcoin,andreaskern/bitcoin,mm-s/bitcoin,dscotese/bitcoin,bitcoin/bitcoin,GroestlCoin/GroestlCoin,fujicoin/fujicoin,instagibbs/bitcoin,jambolo/bitcoin,GroestlCoin/GroestlCoin,sstone/bitcoin,mm-s/bitcoin,anditto/bitcoin