Update class.ab-paginate.php

Fixed bug when total_items is not declared.