Fix crash in resoure duplicate
Fix crash in resoure duplicate

(cherry picked from commit 9450717571c1b1cd43be5b188e55442dcd412c51)

ex/godot,ex/godot,ex/godot,ex/godot,ex/godot,ex/godot,ex/godot,ex/godot