Detect node name change correctly.

Change-Id: Idf812cbbca97af9de9846eb6ba0b46a62c52d02e
Reviewed-on: http://review.couchbase.org/33543
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>