Revert "Use isNone to check tag name"

This reverts commit 6c446205090966f6838cdd1576e677aadf64411f.

I was to hasty in merging this, we should likely be ultra careful about
extra functions invocations in coreView especially since not all the js
runtimes will these simple functions.