check if device has a valid NativePointer

fix for issue https://github.com/mono/MonoGame/issues/3206