Changed DTAttributedTextContentView to discard invalid CGContexts.

This method would often receive an invalid context, which littered the console with ugly warnings. Aborting on a null  context seems to fix the issue.