End tag token errors handling