Issue #2147341 by milesw: fixed missing bundle property on entity of type taxonomy_term when replacing existing terms.