Event Broker: fixed issue when unregistering publications twice