Document destroy() and svg