fixing hasNext-bug when at the end of the event store