It appears that natural llama spit cannot be detected using commands. This might be related to the decreased life time of the spit and the loss of its Owner tag (?).
- Set up a repeating command block with the command
- Verify that it works
- Spawn a llama and make it spit, e.g. by spawning wolves or by angering it
→ The llama spit is not detected