The GOPe set up rules at the convention that allows delegates to nominate someone OTHER THAN one of the candidates that ran in the primaries. This is why from time to time we keep seeing Mitt Romneys name pop up.
Don't think for a moment the establishment are not studying carefully ways to derail Cruz and or Trump. I even believe at this point, they'd throw away four years with a Democrat president rather than a Trump or Cruz presidency.