pretty: handle broken commit headers gracefully