Check if window is loaded before setting owner property, fix for #413
Merge branch 'master' of https://github.com/ikeough/Dynamo