[API] Prevented errors with deleted products in the orders endpoint, closes #6813
Changelog for orders API fix