fix metadata hook for new clusters

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