Fixed an issue with display:none elements being rendered in SVG fragments