Fixed checking of whether product is deleted or not