A second-quarter loss has led to falling first-half earnings at Sweden-based confectioner Cloetta.