fixes search error when not ingredient is checked and no ingredient exists