Fix Nashorn error: has no such function getHandlerList.

The error can be seen by registering a block.BlockBreakEvent event. Since BlockBreakEvent inherits its getHandlerList from block.BlockExpEvent, nashorn freaks out.