[bug fix] PTSDK-1399

fixed getAppContext() will fail when called with one parameter
Merge pull request #143 from zivchang/next

[bug fix] PTSDK-1399