Fix request #7487: Existing folder, links and empty docs in docman aren't taken into account during project reindexation

Change-Id: Iee7efdc8eaa1dcc4bd56d8bc809a91d9a33b5078
Merge commit 'refs/changes/54/3054/2' of ssh://gerrit.tuleap.net:29418/tuleap into HEAD

* ssh://gerrit.tuleap.net:29418/tuleap:
  Fix request #7487: Existing folder, links and empty docs in docman aren't taken into account during project reindexation

Change-Id: Id6d2f647f7400a91334e14ade3271d009b6bec9a
This is Tuleap 7.5.99.22

Change-Id: If0d5d22d17d072912f8c0e5d72143b2c53aca84c