as the joke goes, these missiles were very old - they were produced when there were no stealth planes, and thus they didn't know that that plane was supposed to be invisible to them.
Some IRCM systems have historically encountered this same problem in their development. Modern missiles were defeated, but very old missiles were actually attracted.
It isn't really a joke so much as a humorous way to describe a nasty reality.
http://en.wikipedia.org/wiki/1999_F-117A_shootdown