Make sure to handle nils when we chop an sha for display.