Refs #540. Using unwrapIfMeaninglessSpan instead of hasRealAttributes