Key off the envelope when the VAG/etc. ends.

Fixes Yu-Gi-Oh Tag Force GX 3 hanging in some places.
Merge pull request #5100 from unknownbrackets/sas-minor

Key off the envelope when the VAG/etc. ends