Recreation
By using hasitem on lingering potion hasitem={item=lingering_potion}
Expected
Should detect the player even random lingering potion taken from the inventory since there is no specified data/id
By demonstrating /clear it removes the lingering potion without specified data/id
Here is the demonstratio video: 45.6MB
https://drive.google.com/file/d/135_rGRXltYwycaBySaqylaJmUNphg8N8/view?usp=drivesdk
It doesn't work also on other stuff like splash potion, etc.