Added condition to handle case of field keys that are not present in job output