devpanel: fix crash on inspecting svg elements