Prevent eventGenerate with event.xany.window=None [test+fix]

Hi Slaven,

While writing a test for some code built on pTk, I discovered that eventGenerate will attempt to operate with window=None, if called before Tk_MakeWindowExist.

The test shows this happening.  The fix turns that into an error.


Thanks for your work + hth,