Fixed issues with log indices.

Fixed an issue where log indices were not computed correctly for
retrieving the quorum commit index.