Validate 'writer' parameter before creating a job object.

Change-Id: I6357884792a541f5effd0f83a2c98424fabcc7ce