But the French energy firm made huge losses as a whole due to problems with its nuclear reactors.