fReindex=false is set immediately after the while loop anyway, just break suffices. I prefer not changing fReindex without writing it to the block index.