TEZ-1722. DAG should be related to Application Id in ATS data. (hitesh)

(cherry picked from commit c570a0e12921fff5787877ceb5612b08115d77a4)