Fixed a bug when edit/delete button clicked and no product is choosen