Fix wrong flattening of Closures in getTasksListeners
Fix events being wrongly cleared when no stage is set