Fix pagination for taxons

Fixes #4873
Fixes #4854