[PATCH 5.15 617/667] iommu/msm: Fix an incorrect NULL check on list iterator