Fix fatal error when user is not LDAP but do browse a gerrit git repo

Change-Id: Ia9de3b66faf22015e69d6c887b09972f09d2866b
Merge commit 'refs/changes/02/1102/1' of ssh://gerrit.tuleap.net:29418/tuleap into stable

* ssh://gerrit.tuleap.net:29418/tuleap:
  Fix fatal error when user is not LDAP but do browse a gerrit git repo

Change-Id: I64f3b0bfb041640733373854d1cee589014f534c
This is Tuleap 6.5.99.38

Change-Id: I5cac7abc726de0de657318a718d7cf328e88722f