Diagram to SVG was rendering removed elements