fix duplicate metrics with empty buckets

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