Job #19766 BUG: Stop or reload all scripts crashes interface

Please see the commit notes for an explanation of the problem.
Have you confirmed that this change still allows you to open scripts as both local files AND as URLs to script files?