Minor cleanup in ChainNode.unchain.

Do not reassign passed in variable. Makes debugging quite painful.
Merge pull request #9493 from rwjblue/minor-cleanup

Minor cleanup in ChainNode.unchain.