Catch and log errors in contributions formatting

Change-Id: I0afcdcd5063217fa06cb42083582cfb2fdb2b13e
Merge "Catch and log errors in contributions formatting"