Handling tree command when no session is active
Handling tree command when no session is active

Summary: Instead of grabbing acitve session we should grab active application

Reviewed By: gkassabli

Differential Revision: D3218778

fb-gh-sync-id: 53a593d99243fa154aa36925697f75b4e1866997
fbshipit-source-id: 53a593d99243fa154aa36925697f75b4e1866997

ymin/WebDriverAgent,rafael-chavez/WebDriverAgent,Gogle/WebDriverAgent,ymin/WebDriverAgent,calabash/WebDriverAgent,PiranhaTeam/WebDriverAgent,zenzhu/WebDriverAgent,riccoyu/WebDriverAgent,PiranhaTeam/WebDriverAgent,riccoyu/WebDriverAgent,Gogle/WebDriverAgent,b1ueshad0w/WebDriverAgent,calabash/WebDriverAgent,riccoyu/WebDriverAgent,b1ueshad0w/WebDriverAgent,qa-dev/WebDriverAgent,ymin/WebDriverAgent,Gogle/WebDriverAgent,ymin/WebDriverAgent,rafael-chavez/WebDriverAgent,rafael-chavez/WebDriverAgent,b1ueshad0w/WebDriverAgent,drptbl/WebDriverAgent,b1ueshad0w/WebDriverAgent,drptbl/WebDriverAgent,zenzhu/WebDriverAgent,calabash/WebDriverAgent,zenzhu/WebDriverAgent,Gogle/WebDriverAgent,qa-dev/WebDriverAgent,qa-dev/WebDriverAgent,PiranhaTeam/WebDriverAgent,qa-dev/WebDriverAgent,drptbl/WebDriverAgent,riccoyu/WebDriverAgent,PiranhaTeam/WebDriverAgent,PiranhaTeam/WebDriverAgent