[batch] Fixed next page button (#10014)
[batch] Fixed next page button (#10014)

* [batch] Fixed next page button

-when there were exactly 50 batches it would show a next page button 
that displayed an empty page.

* adressed comments
hail-is/hail,hail-is/hail,hail-is/hail,hail-is/hail,hail-is/hail,hail-is/hail,hail-is/hail,hail-is/hail