check if device has a valid NativePointer

fix for issue https://github.com/mono/MonoGame/issues/3206
Do we have any clue as to why this happens?