Attempt to return a realistic result from getTagName on DOM elements. The fixes the assertion issue when trying to instantiate Label-based widgets