MODE-2104 Fixed the restoring of nodes when some of them have been moved between versions.