Handle duplicate trap resrefs