Fixing handling for jobs with empty sources.