Symphony Battle Error With Hime's Non Targetable Script

Ok, so I am using Symphony Battle System and would like to add Hime's Non Targetable script. I set up the battle event so that when the other monsters have been killed the no target state is removed from the last monster. The script works great up to the point when the last enemy is targeted and the attack comences. It then pops this error on me...

Script 'Window_Selectable' line 61: ZeroDivisionError occurred.

divided by 0

Any help on this would be appreciated.

EDIT: Solution found. Thread can now be closed.

Original thread: https://forums.rpgmakerweb.com/threads/symphony-battle-error-with-himes-non-targetable-script.16142/