ECMS-5682: Pagination does not work with permissions

Problem analysis:
  - the function nodeIterator.getSize() does not take the permission into account

Fix description:
  - navigate throw the iterator to get the real number of items