Check if term is returned before getting its name

Prevents a rare notice if the order item meta value is blank