Fix MAGN-2213 Crash while placing downloaded custom node

This pull request fixes the following critical defect:

[MAGN-2213 Crash while placing custom node downloaded from Package Manager](http://adsk-oss.myjetbrains.com/youtrack/issue/MAGN-2213)

Please refer to inline comments for details of what the changes are.