Fixed range violation when an attribute declaration is not finished before EOF