Changed DTAttributedTextContentView to discard invalid CGContexts.