[application]Fix TypeMismatchError

Fix TypeMismatchError in getAppsContext and getAppsInfo

BUG=XWALK-2407