Bug fix: only divs should be converted to raw html when attrs are non-empty