XWIKI-10100: TRANSPORT_ERROR with SSO in tree view

 * avoid the NPE if the credentials are null
Merge remote-tracking branch 'origin/master'