Properly set the upr cursor offset

Change-Id: I35a40000c33bd778d09a6118f3ef0a005aaf7518
Reviewed-on: http://review.couchbase.org/33165
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>