[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