[ZabbixAPIEmulator] Fix wrong checks for event range