nereusviz: getValidParent - if the parent window is no longer valid we exits BGE
patch to eventually be committed to upstream/blender
it still needs the Linux counterpart