Added support to insert an event handler at the beginning of class-level event handler queue