Fix getProductsByTerm Snippet bug