For months, the specter of a contested Republican convention has lingered over the crowded race for the nomination.