Allowing pagination to work on a table with no elements