fix distinct null value in unique index

Change-Id: Ida4cd18f2ce852a73fd05613cd0285010b4c66f5
Reviewed-on: http://review.couchbase.org/25060
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>