Added detection when no product is selected.