Fixed parser behavior in empty elements