MOBSDK-705:  Multiple-tenant handling code is incorrect
Merge pull request #267 from msaeedi/master

MOBSDK-705