The Foreign Minister Ingibjorg Solrun Gisladottir , head of the Social Democrats , had been absent for most of the crisis because she was being treated for a brain tumour ; President Ólafur Grimsson underwent heart surgery ; and Haarde announced that he had cancer of the oesophagus .