Fixed bug in resubmission of jobs with no dependencies (which finally were dependent on all jobs of the database).