Correctly handle line overflow in book pager
Fixes a bug with the last book pager tweak.