Fixed Pagination::isInvalid()
for empty data condition.