Local jobs post SparkListenerJobEnd, and DAGScheduler data structure
cleanup always occurs before any posting of SparkListenerJobEnd.
Moved checking of empty DAGScheduler data structures to after
SparkListenerJobEnd notification.