Only record stats for successful jobs.

Stats on failures aren't very useful because they are so random.

Change-Id: Ia289d8f4666645e7b01e1fc3d75ff86a0b5e20a1