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
Merge commit '34bf4a61b546a798a131c2b688e1eb19fb9548c5' into HEAD