Issue 1583

nextn.next being set to 1 before the above iif() statement on line 114, eg:

```coldfusion
<cfif nextn.next gt nextn.NumberOfPages>
    <cfset nextn.next=1 />
</cfif>
```
...
```coldfusion
<cfset nextn.through=iif(nextn.totalRecords lt nextn.next,nextn.totalrecords,nextn.next-1)>
```

was causing nextn.through to wrongly be set to the value 0, rather than the size of the resultset.

By moving the cfif beginning on line 103 to underneath the iif(), through still gets set correctly and anything previously requiring nextn.next to be set to 1 should continue to work correctly.