[Application]fix TypeMissmatchError
fix TypeMissmatchError in getAppsContext and getAppsInfo

BUG=XWALK-2407