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.