fix #4623: remove unused _isEmptyTag function

fix #4623 by removing unused function. HTMLInstrumentation tests still pass.

to @njx