fix(pagination): handle extreme values for `total-items`