Fix for #8886. Correct state=absent for statements without name/alias.