Inspector fails due to ios app hierarchy check

Hello. I have an unusual problem. The Appium Inspector crashes the app when tries to get source of particular pages (The app itself works normally here). Here’s the error message:

[iOSLog] [IOS_SYSLOG_ROW] Aug 23 15:39:39 callnotes-mini App[1387]: fatal error: collectionViewCell unexpectedly not found in hierarchy <App.ContactTrayViewContainer: 0x7fd3f8e4c520; frame = (0 451; 375 92); opaque = NO; autoresize = RM+BM; layer = <CALayer: 0x7fd3f8edb990>>: file ContactTrayViewCell.swift, line 45

After consultation with developers I found the place which throws the error. It seems that devs added additional check here:

class ContactTrayViewContainer: UIView {
override func pointInside(point: CGPoint, withEvent event: UIEvent?) → Bool {

    [...]
    guard let collectionView: UICollectionView = ATMCheckoutInviteeViewController.collectionViewFromHierarchy(self) else {
        assertionFailure("collectionView unexpectedly not found in hierarchy \(self)")
        return pointInside
    }
    
    let collectionViewPoint = convertPoint(point, toView: collectionView)
    guard let indexPath = collectionView.indexPathForItemAtPoint(collectionViewPoint),
        let collectionViewCell = collectionView.cellForItemAtIndexPath(indexPath) else {
            assertionFailure("collectionViewCell unexpectedly not found in hierarchy \(self)")
            return pointInside
    }
    
  [...]
}

}

As I understand, Inspector tries to point on element which does not exist yet. Is there any workaround besides removing these checks on the dev side?

Thanks for any suggestions.