Fix batch not stopped when using the spawn cheat.
Reported and tested by @Langbart. Differential revision: https://code.wildfiregames.com/D4939 Fixes #6739