[processing] fixed error when running script algorithm from script editor (fixes #9905)