Fix unbound variable re job_name_in_report

If job_name_in_report is false, the 'name' variable may be
undefined.  This makes sure it is always defined.

Change-Id: Ie544ccdf1661e08e2aa4c8055999f16e20d7584b