MOBSDK-699: Process variables are not handled consistently.
Also prevented services from being instantiated if a nil session is passed.
Merge pull request #261 from gavincornwell/master

MOBSDK-699: Process variables are not handled consistently.