When data is empty, hide the pagination.