MOBSDK-699: Process variables are not handled consistently.
Also prevented services from being instantiated if a nil session is passed.