Fix guid setting

1. Fix where the guid is set when adding a node.
2. This is based on the fix by Ben:
https://github.com/DynamoDS/Dynamo/pull/2028
Merge pull request #2835 from junmendoza/defectfix

Fix guid setting