[Application] Add the check for return value of Begin().

This patch is to check the return value of Begin().

CID=194012
CID=194029

Related to XWALK-2928
Merge pull request #2699 from wuhengzhi/xwalk_2928_cid194012_194029_new

[Application] Add the check for return value of Begin().