No you were right the first time, it was spoken by Aragorn to Haldir.
It was my first instinct. But on second thought, it seemed to me that it was Aragorn who should've thanked him, LOL!
Could 62 be Legolas to Aragorn instead of Aragorn to Legolas?