[application]Fix TypeMismatchError

Fix TypeMismatchError in getAppsContext and getAppsInfo

BUG=XWALK-2407
Merge pull request #407 from liyingzh/xwalk-2407

[application]Fix TypeMismatchError