Fix Nashorn error: has no such function getHandlerList.