Use correct variable. see #22922.

git-svn-id: http://develop.svn.wordpress.org/trunk@25105 602fd350-edb4-49c9-b593-d223f7449a82
Check `term_id` against the `$term` object, not the non-existent var `$args`. Props rboren. Fixes #12729.



git-svn-id: http://develop.svn.wordpress.org/trunk@25106 602fd350-edb4-49c9-b593-d223f7449a82