Add the "viewBox" attribute if not present (see #7108)