Fix pagination for taxons

The master branch is confirmed to have issue #4854
It appears other branches would have the same issue but I haven't tested.

It is odd that this hasn't come-up before.