Modification to partition consumer to only store updated offset if commit is not false.