Fix check of time interval (needs to ensure currentPosition > 1 to not underflow or do a useless check).
Also reset the position counters after a commit.
Further, make RESET_TIMESTAMP have a maximum timestamp instead of 0, to ensure it also logically follows the
last event in the old ts-count.