I think too that what Obama said was just joking (thanking himself).
This is what I've found written about the incident. It really doesn't read much like an incident at all:
During his second address, however, Prime Minister Cowen started speaking words that were more likely to come from President Obama. That was due to the fact that the teleprompter was showing the words from Obama's speech, given prior to Cowen's address.
Obama had to deflect the gaffe by coming up and reading from his speech again. Trying to act as Prime Minister Cowen, Obama thanked himself as Cowen for inviting everyone to the White House.
__________________
There are no weapons of mass destruction in Iraq, Chuck Norris lives in Houston.
Either the United States will destroy ignorance, or ignorance will destroy the United States. – W.E.B. DuBois