[Tizen][Runtime] Improve query running app.
[Tizen][Runtime] Improve query running app.

Fix cannot query running for wgt app with tizen_app_id on tizen.
Fix core dumped when query running without app id.

Query running will return result code(0 for success and 1 for
fail), so that we can check the result code about the status of
the app.

BUG=XWALK-2065

pk-sam/crosswalk,leonhsl/crosswalk,xzhan96/crosswalk,dreamsxin/crosswalk,weiyirong/crosswalk-1,DonnaWuDongxia/crosswalk,axinging/crosswalk,tedshroyer/crosswalk,tomatell/crosswalk,zliang7/crosswalk,jondong/crosswalk,jpike88/crosswalk,zeropool/crosswalk,siovene/crosswalk,lincsoon/crosswalk,xzhan96/crosswalk,xzhan96/crosswalk,zliang7/crosswalk,jondwillis/crosswalk,zliang7/crosswalk,DonnaWuDongxia/crosswalk,leonhsl/crosswalk,TheDirtyCalvinist/spacewalk,tomatell/crosswalk,myroot/crosswalk,rakuco/crosswalk,baleboy/crosswalk,jondong/crosswalk,baleboy/crosswalk,stonegithubs/crosswalk,bestwpw/crosswalk,RafuCater/crosswalk,RafuCater/crosswalk,pk-sam/crosswalk,crosswalk-project/crosswalk,xzhan96/crosswalk,pk-sam/crosswalk,Bysmyyr/crosswalk,minggangw/crosswalk,minggangw/crosswalk,XiaosongWei/crosswalk,dreamsxin/crosswalk,crosswalk-project/crosswalk-efl,PeterWangIntel/crosswalk,tedshroyer/crosswalk,crosswalk-project/crosswalk-efl,chuan9/crosswalk,Pluto-tv/crosswalk,chuan9/crosswalk,ZhengXinCN/crosswalk,chuan9/crosswalk,alex-zhang/crosswalk,crosswalk-project/crosswalk-efl,ZhengXinCN/crosswalk,zeropool/crosswalk,hgl888/crosswalk,lincsoon/crosswalk,dreamsxin/crosswalk,hgl888/crosswalk,pk-sam/crosswalk,darktears/crosswalk,rakuco/crosswalk,zeropool/crosswalk,zeropool/crosswalk,huningxin/crosswalk,crosswalk-project/crosswalk-efl,qjia7/crosswalk,fujunwei/crosswalk,stonegithubs/crosswalk,chuan9/crosswalk,zliang7/crosswalk,hgl888/crosswalk-efl,TheDirtyCalvinist/spacewalk,axinging/crosswalk,jondong/crosswalk,Bysmyyr/crosswalk,siovene/crosswalk,RafuCater/crosswalk,zliang7/crosswalk,lincsoon/crosswalk,darktears/crosswalk,ZhengXinCN/crosswalk,marcuspridham/crosswalk,DonnaWuDongxia/crosswalk,XiaosongWei/crosswalk,stonegithubs/crosswalk,ZhengXinCN/crosswalk,jondong/crosswalk,tedshroyer/crosswalk,darktears/crosswalk,bestwpw/crosswalk,axinging/crosswalk,pk-sam/crosswalk,chinakids/crosswalk,minggangw/crosswalk,fujunwei/crosswalk,heke123/crosswalk,heke123/crosswalk,baleboy/crosswalk,bestwpw/crosswalk,amaniak/crosswalk,crosswalk-project/crosswalk,xzhan96/crosswalk,Bysmyyr/crosswalk,mrunalk/crosswalk,XiaosongWei/crosswalk,Pluto-tv/crosswalk,bestwpw/crosswalk,crosswalk-project/crosswalk,XiaosongWei/crosswalk,crosswalk-project/crosswalk,mrunalk/crosswalk,baleboy/crosswalk,crosswalk-project/crosswalk,Bysmyyr/crosswalk,amaniak/crosswalk,PeterWangIntel/crosswalk,rakuco/crosswalk,TheDirtyCalvinist/spacewalk,dreamsxin/crosswalk,mrunalk/crosswalk,zeropool/crosswalk,siovene/crosswalk,Pluto-tv/crosswalk,jondwillis/crosswalk,lincsoon/crosswalk,stonegithubs/crosswalk,leonhsl/crosswalk,crosswalk-project/crosswalk,chinakids/crosswalk,crosswalk-project/crosswalk-efl,jpike88/crosswalk,minggangw/crosswalk,mrunalk/crosswalk,hgl888/crosswalk-efl,TheDirtyCalvinist/spacewalk,leonhsl/crosswalk,alex-zhang/crosswalk,weiyirong/crosswalk-1,hgl888/crosswalk-efl,lincsoon/crosswalk,lincsoon/crosswalk,alex-zhang/crosswalk,myroot/crosswalk,axinging/crosswalk,jondwillis/crosswalk,amaniak/crosswalk,marcuspridham/crosswalk,qjia7/crosswalk,tomatell/crosswalk,chuan9/crosswalk,leonhsl/crosswalk,jpike88/crosswalk,zeropool/crosswalk,weiyirong/crosswalk-1,tomatell/crosswalk,XiaosongWei/crosswalk,RafuCater/crosswalk,rakuco/crosswalk,marcuspridham/crosswalk,alex-zhang/crosswalk,Pluto-tv/crosswalk,hgl888/crosswalk-efl,hgl888/crosswalk-efl,hgl888/crosswalk,huningxin/crosswalk,siovene/crosswalk,crosswalk-project/crosswalk-efl,zeropool/crosswalk,zliang7/crosswalk,weiyirong/crosswalk-1,fujunwei/crosswalk,fujunwei/crosswalk,qjia7/crosswalk,fujunwei/crosswalk,darktears/crosswalk,chinakids/crosswalk,heke123/crosswalk,dreamsxin/crosswalk,amaniak/crosswalk,weiyirong/crosswalk-1,rakuco/crosswalk,Bysmyyr/crosswalk,pk-sam/crosswalk,ZhengXinCN/crosswalk,lincsoon/crosswalk,marcuspridham/crosswalk,RafuCater/crosswalk,DonnaWuDongxia/crosswalk,Pluto-tv/crosswalk,RafuCater/crosswalk,minggangw/crosswalk,alex-zhang/crosswalk,minggangw/crosswalk,ZhengXinCN/crosswalk,lincsoon/crosswalk,tedshroyer/crosswalk,marcuspridham/crosswalk,marcuspridham/crosswalk,huningxin/crosswalk,rakuco/crosswalk,XiaosongWei/crosswalk,bestwpw/crosswalk,heke123/crosswalk,jpike88/crosswalk,weiyirong/crosswalk-1,rakuco/crosswalk,chuan9/crosswalk,xzhan96/crosswalk,myroot/crosswalk,heke123/crosswalk,jpike88/crosswalk,myroot/crosswalk,tedshroyer/crosswalk,heke123/crosswalk,jondwillis/crosswalk,baleboy/crosswalk,siovene/crosswalk,tedshroyer/crosswalk,mrunalk/crosswalk,pk-sam/crosswalk,stonegithubs/crosswalk,leonhsl/crosswalk,hgl888/crosswalk,leonhsl/crosswalk,hgl888/crosswalk,jondong/crosswalk,tedshroyer/crosswalk,hgl888/crosswalk,amaniak/crosswalk,fujunwei/crosswalk,dreamsxin/crosswalk,fujunwei/crosswalk,RafuCater/crosswalk,bestwpw/crosswalk,chinakids/crosswalk,dreamsxin/crosswalk,qjia7/crosswalk,jpike88/crosswalk,alex-zhang/crosswalk,qjia7/crosswalk,darktears/crosswalk,chinakids/crosswalk,chinakids/crosswalk,DonnaWuDongxia/crosswalk,crosswalk-project/crosswalk,tomatell/crosswalk,heke123/crosswalk,axinging/crosswalk,zliang7/crosswalk,TheDirtyCalvinist/spacewalk,PeterWangIntel/crosswalk,alex-zhang/crosswalk,chuan9/crosswalk,tomatell/crosswalk,crosswalk-project/crosswalk,Pluto-tv/crosswalk,stonegithubs/crosswalk,minggangw/crosswalk,weiyirong/crosswalk-1,jondong/crosswalk,darktears/crosswalk,siovene/crosswalk,baleboy/crosswalk,qjia7/crosswalk,baleboy/crosswalk,DonnaWuDongxia/crosswalk,XiaosongWei/crosswalk,amaniak/crosswalk,zliang7/crosswalk,ZhengXinCN/crosswalk,axinging/crosswalk,hgl888/crosswalk,xzhan96/crosswalk,huningxin/crosswalk,baleboy/crosswalk,Bysmyyr/crosswalk,Bysmyyr/crosswalk,xzhan96/crosswalk,Pluto-tv/crosswalk,Bysmyyr/crosswalk,PeterWangIntel/crosswalk,bestwpw/crosswalk,DonnaWuDongxia/crosswalk,siovene/crosswalk,PeterWangIntel/crosswalk,jondong/crosswalk,TheDirtyCalvinist/spacewalk,PeterWangIntel/crosswalk,myroot/crosswalk,minggangw/crosswalk,marcuspridham/crosswalk,heke123/crosswalk,marcuspridham/crosswalk,darktears/crosswalk,jondong/crosswalk,crosswalk-project/crosswalk-efl,rakuco/crosswalk,darktears/crosswalk,hgl888/crosswalk-efl,jondwillis/crosswalk,mrunalk/crosswalk,jondwillis/crosswalk,hgl888/crosswalk,jondwillis/crosswalk,axinging/crosswalk,hgl888/crosswalk-efl,huningxin/crosswalk,stonegithubs/crosswalk,jpike88/crosswalk,tomatell/crosswalk,amaniak/crosswalk,PeterWangIntel/crosswalk,huningxin/crosswalk,myroot/crosswalk