SI-5920 hardens macro engine against invalid inputs

Due to an unexpected combination of c.abort's in Slick codebase (something
that I've yet to minimize), it was possible for a Block of erroneous macro
applications to enter macro engine, wreaking havoc in undoNamesDefaults.
This commit prevents this from ever happening again.