Fixes #790 OpenStudio App Crashes if delete script from disk

[#68827912]
Merge pull request #1087 from NREL/68827912_DeleteScriptCrash

Fixes #790 OpenStudio App Crashes if delete script from disk