Cli: Make sure to check for removed nodes only once in 'node update-config'

fixes #7917
Documentation: Add import template in dependencies example

fixes #8051