fixed issue while trying reset the read offset to 0.

If we are passing offset 0 with options passed to consumer, the offset never gets reset to 0 but instead sets to last offset due to the if(options.offset) check done. So the condition was edited accordingly. Also the producer was invoking errors even when the error was undefined, this was rectified.