taxonomy_term_path function in Taxonomy wrapper gets $term as an inpurt parameter. $term has the variables tid, vid etc set in it, taxonomy_term_path function inturn calls the category_category_path by passing the $term as input arguement. But category_category_path expects $category as input object. Specifically it looks for $cnid variable. So set the $cnid ( and perhaps $cid) variable in $term before passing it as arguement to category_category_path function. Change in code.

From
function taxonomy_term_path($term) {
return category_category_path($term);
}
to
function taxonomy_term_path($term) {
$term->cnid = $term->vid;
$term->cid = $term->tid;
return category_category_path($term);
}