Fixed assertion failure the API method
Fixed assertion failure the API method

iterator.getLastPage() has a quirk where it returns -1 if we at the last
page, instead of the 1-based index of the last page (it returns the
correct result if we are not on the last page). This violated an
assertion.

saav/HubTurbo,HyungJon/HubTurbo,ianngiaw/HubTurbo,Honoo/HubTurbo,Sumei1009/HubTurbo,Sumei1009/HubTurbo,gaieepo/HubTurbo,saav/HubTurbo,gaieepo/HubTurbo,HyungJon/HubTurbo,ianngiaw/HubTurbo,Honoo/HubTurbo