Checking if term is not wp_error before adding to collection