Avoid the following notice: `Use of undefined constant term_id - assumed 'term_id'`, while running in debug mode.

See #25282.



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