foodlog: automatically set the unit to the one specified in the food