Fixed NPE in DagScheduler