Men who stole thousands of pounds worth of sweet treats are spared jail terms.