removeNotSubscribedEvents

Removes all events, excluding internal library events, that do not have {@code subscriptionId}.