Fix minor bug in offset management

In the current patch get_messages(count=1) would return zero messages
the first time it is invoked after a consumer was initialized.
Merge branch 'partition' into mpcommit