paginator fix for cases when last doc is not an item type