iommu/amd: Fix NULL pointer deref on device detach