fix infinite reloading of missing script files
Merge pull request #2201 from ZappoMan/bugfixes

fix infinite reloading of missing script files