The rapper could've left the Los Angeles courtroom in cuffs, awaiting a long prison sentence. But he instead found himself ...