Adding logs and re-organized the logic of get root task

Comb through the get root task logic and adding warning
logs when the targeted launching display/task is invalid.

Bug: 184806710
Bug: 218216633
Test: wm presubmit
Change-Id: I9163a06e1c7d40709bda139d3d70c6e4145c573e
1 file changed