ECMS-5757 Improve the initialization of CLV pointing to empty folder

Fix description
* If the selected folder is empty, then return empty result without querying the database.
Merge commit 'ed0aa573d5d1276266a732b2ae7fb946f8104de2' into HEAD