Merge "Do not crash NearestTouchFrame when views are not attached to window"