Fixed null-related bugs in Ingredient type