fix for possible problem with searching event
During searching a next event to process by an application there is a need to limit range of possible events id to max. event id from the moment when searching was started, othweriwse there may inconistency occure when sql-serializer will commit new events when searching is in progress.