ECMS-6000: CLONE - Pagination does not work with permissions

Fix description:
  - when the clicked page is empty, return to the previous pages util meet an unempty page