No session for public share key just for jenkins

Same as https://github.com/owncloud/core/pull/12410

This PR just exists to let Jenkins test the changes. Review should happen here: #12410