A fall in second-quarter earnings has failed to stop employee-owned US retailer Publix from reporting half-year profits.