Make a copy of result from get_term_by because directly modifying object was causing issues when get_term_by was called again with same args