Safe-guard innerHTML which may be empty (SVG elements)