Fix Theme Editor crash when clicking the element picker
Fix Theme Editor crash when clicking the element picker

(cherry picked from commit abd41dedb00b8526517ab2e5231c2065e7b96768)

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