avoid exception when parsing invalid yaml config