Add check for more common elements without content

Change ported from DebugCSS