Fix event firing order and DelayedAction NPE

Event handlers called this way did not respect priorities.