[ZabbixAPIEmulator] Fix a bug that wrong event ID is used on checking the range