fixed parser error on empty nodes with attributes