Ignore db query (while generating result set) if event id is not given.
If id is not given the corresponding event was not consumed, and
therefore optional in this query.