entitlement: fix infinite loop in EventsStreamBuilder

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>