Only call `committedOffsets()` once
Only call `committedOffsets()` once

This function "does something", and is getting called inside a tight loop inside a critical
area. Essentially we can avoid the call overhead and the condition check in each invocation
here.

tulios/kafkajs,tulios/kafkajs,tulios/kafkajs,tulios/kafkajs