fixed ajax pager script (stopping when "end_of_list" status and no items)