You're right, I didn't follow all of the conventions in my response.
I was trying to focus on the error in the code, not the coding style. See my new discussion topic for more thoughts...