Add a special case for EMP and automata.

MAGIC-37 #done #comment I'd like to do more with this in the future,
but for now EMP just won't affect Automata at all.
Import cleanup
Catch a weird missing-Mage NPE

I wonder how often this happens...