Attempted fix for
MAGN-3144 Trouble switching between dyn files.

Was trying to bind to elements that didn't exist in the document, and not providing any crash protection
Merge branch 'master' of https://github.com/DynamoDS/Dynamo