[NUI] Fix the Window.VisibilityChanged event's crash issue