This error is being thrown. Do we have any method which I can use to check before registering for events?