You’re only throwing your vote away if you otherwise would have voted Romney. If you weren’t prepared to take that plunge, then you did the only thing you could do.
Vote for Romney. If he doesn’t get enough delegates to stay in the race, he’s out and those votes will go to McCain, not Huck since he is already weak, and McCain will have enough delegates to win. There would not be a brokered convention in that scenario.