Clear inline SVG when hiding modal preview.