Fix check for global scope
Merge branch 'master' of https://github.com/DynamoDS/Dynamo into defectfix
Merge pull request #3069 from junmendoza/defectfix

Fix check for global scope