Fix undefined bug when no products found.