Update products_controller.rb

Getting exception in stock_movements, if product is deleted by API.

Steps
1. Delete a product from API
2. Go to /admin/stock_locations
3. click on Stock Movements


I fixed this issue in my commit :).