don't update nodes if not defined

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