From: "Phil Krylov" phil@newstar.rinet.ru
Here is a patch which adds checking if the window has been destroyed at that point. I don't know if it is acceptable but it fixes the problem.
But this could potentially happen on any notification, what makes this particular one special (sorry, I was away on vacation and I missed this thread).