Fixed NPE on extensions that don't register a specific event type.