First of all, this is in the complete wrong section. But I'll still try to help since I'm nice and not only in the Help section for the post count.
My best guess is that there is no entry in getTemporaryAttributes() that's named Message. Since it can't find Message, it's just returning null.