Looks currently you can't create and dispatch internal events (because they are not exported). I don't remember exactly why, I wrote it a long time ago.
My suggestion is to relocate the logic that you would execute in the second event handler, and instead of dispatching an internal event simply call that method.