Fixes CBLT-284

http://www.couchbase.com/issues/browse/CBLT-284

Change-Id: I3babfb258b30dec56948ee1787c6926f626f04de
Reviewed-on: http://review.couchbase.org/36901
Reviewed-by: Chris Anderson <jchris@couchbase.com>
Tested-by: Chris Anderson <jchris@couchbase.com>