[Application] Add the check for return value of Begin().
[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

(cherry picked from commit 997a8a3505c1dcf6441ad5e564be3367d26d59e1)

TheDirtyCalvinist/spacewalk,TheDirtyCalvinist/spacewalk,TheDirtyCalvinist/spacewalk,TheDirtyCalvinist/spacewalk,TheDirtyCalvinist/spacewalk,TheDirtyCalvinist/spacewalk