The simultaneously flippant and serious answer is that the Queen sorts things out. For any one constituency, a dead heat will be decided by drawing the short straw, and then it's up to Parliament to come up with someone who can command a majority.
I don't think the Queen actually has any power to do anything anymore. She's more of a figurehead and I would guess is nowhere near deciding anyone's fate (if she ever was) much less deciding political races.