fix(engine/eventSubQuery): assert given id is not null

related to CAM-1539