and after the will is made and before the will-maker's death the will-maker and his or her spouse cease to be spouses under section 2 (2) [when a person is a spouse under this Act], the gift, appointment or power of appointment is revoked and the gift must be distributed as if the spouse had died before the will-maker.