The existing code relied on "deep" isNull() checks on QVariant, and thus fails with the shallow behavior in Qt 6.