Fix in 'Merge Nodes' to prevent creating cyclic dependencies when nodes to be marged are linked between one another.

git-svn-id: https://svn.blender.org/svnroot/bf-extensions/trunk/py/scripts/addons@4541 96b784f8-4ae3-dd11-aff7-0030488c597c