NXP-14587: do not try to retrieve a SocialWorkspace if there is no session attached to the doc