[GreaseMonkey] Fixed crash when deleting userscript.