MV Errors with VE_Engine Command Replace plugin

So I've been trying to use the Victor Engine Command Replace plugin to implement a limit break system in my game. When testing it from the Battle Test function, it works fine, but when going into a battle in-game, I get the following error:

TypeError
Cannot read property 'code' of undefined

I've included the console information of the error below, as well as the notetag code below;

Code:
<command replace: 'Attack', 'BURST', skill type 4>
if ($gameSwitches.value(8) && $gameParty.inBattle()) {
 result = a.tp == 100;
 } else {
 result = false;
}
</command replace>

For reference, Switch 8 is to ensure that the actor only has access to the limit break after certain story events occur, and the BURST command is set to Skill Type ID 4 in the manager.

1704001213898.png

Original thread: https://forums.rpgmakerweb.com/threads/errors-with-ve_engine-command-replace-plugin.164303/