[BZ 782915] Add support for importing agent configuration files without existing DOCTYPE declaration