fix app upper limit count on last page of search result (bug 1055157)