Prevent infinite loop in search auto-nextpage
Prevent infinite loop in search auto-nextpage

When loading the next page of search results, make sure that the loop
can end if there are no more elements in case the total doesn't match.

Also added a check to avoid recomputing the search results whenever the
setFilter() is called with the same value. This happens when navigating
away to another folder, the search field gets cleared automatically and
it calls FileList.setFilter('').

cernbox/core,bluelml/core,cernbox/core,cernbox/core,bluelml/core,bluelml/core,bluelml/core,cernbox/core,bluelml/core,cernbox/core