Fix deletion of jobs.

The deleteJobs function might be called with various parameters, either a
simple list of job IDs, or with a list of tuples containing (at least) job
and task IDs.