Update node logic for handling startkey values in paginate.