Set jobId to nil when empty.