Correct serialization of finished jobs.

When a job is in-progress, no answer field is present; when it is
completed, the answer is included.