Normal fixing of old constructor for textdocumentgenerator.

Not initialize config objects at all, instead of use configName = "".