When a calibration batch contains an image without a ChArUco board, detectBoard can return None for the corners. Taking its length raises TypeError and stops processing the remaining images.
Skip corner matching and drawing for a missed detection. If no image provides calibration points, report that before calling calibrateCamera.