How does this prevent the "message" attribute not defined error ?
I remember when I saw it that it was happening on this line.