[PATCH 5.4 255/411] iommu/msm: Fix an incorrect NULL check on list iterator