[Xwt] If the native window is null, return null

This is a more logical behaviour and prevents us from hitting silly
null reference exceptions later on in the apps lifespan.

This probably explains some mysterious null reference exceptions we've
been seeing for the last few weeks.