Avoid runtime error looking at order history for items which have since been deleted