Bugfix: Infinite loop in case paste location is part of copied nodes.