I think this one was intentional.  The first "that" introduces a relative clause, while the second one is a demonstrative adjective.
http://en.wikipedia.org/wiki/That