PCBC-219 bugfix

Change-Id: I801f9aafd0250c33afe12f6c51a0270c61cf1c6e
Reviewed-on: http://review.couchbase.org/35567
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Brett Lawson <brett19@gmail.com>