Check empty section in config file to avoid AttributeErrors exceptions when parsing the file.