Pagination fix

Stop onscroll pagination if there is no more data.