Fix missing variable in add_workers 

* it would typically be inherited from consider_adding_workers, but there is
  nothing which guarantees this, hence check() objects
Check that worker, job and chunk ids are really integers

* otherwise sprintf('%d',) gets upset