Fixed: Consider empty text nodes in pre. Do not downcast codeSnippet_class.