[Misc] Fix javadoc regression introduced when the hidden documents feature was introduced
[Misc] Really fix tests (caused by XWIKI-9763)