Shouldn't this be `if (!OC.Util.hasSVGSupport()) {`?