Add an ID to the root SVG element if there is a prefix.