I think the chocolate had symbolic significance more than anything else. It was a symbol of hope, and that there would be something after the war. Maybe it was more valuable as that, then if they had just eaten it anyway.
You are probably correct.