fixed batch_resource blowing up when searching for items (if one of the items of an order has no batch yet)