As several Paulines have pointed out to me, it was not McCain who delivered West Virginia to Huckleberry, but our man Paul.

“Our goal is to secure as many delegates to the national GOP convention in Minneapolis-St. Paul as possible,” said Ron Paul 2008 campaign manager Lew Moore. “Securing three delegates in West Virginia is an important step in that direction. We plan on locking up more delegates before the day ends.”
In an agreement first reported by West Virginia television station WSAZ, the three Ron Paul delegates were secured through an agreement with the Mike Huckabee campaign.
Ron Paul delegates to the state convention swung their support to Huckabee — putting Huckabee over the top — after Congressman Paul was eliminated in the first round of voting.

Look, a brokered convention is not mathematically impossible.