StructuredDocumentTag.StyleName throws null exception

What would cause the StructuredDocumentTag.StyleName property to throw a null exception?

@grinder22,

Please ZIP and upload your simplified input Word document and piece of source code to reproduce the same problem on our end. We will then investigate the issue on our end and provide you more information.

Apparently this will happen if the underlying style is not set. Problem solved.