Fix emitting an event that has no subscribers