Add a getUniqueExitBlock utility function, similar to getExitBlock,