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

Please see the commit notes for an explanation of the problem.