DDF-820: added check for userId being null, if so use the serverSessionId