Dont throw an error when calling $server->getUserFolder when logged out

backport of https://github.com/owncloud/core/pull/9904