Fix logic error in MultipleTermPositions::next().

Thanks to alian555.