Fix crash when recovering jobs of a removed tool