Fixed error when measuring svg flex component that don't have an svgDocument.