Need help fixing a bug when enemies Escape (Fomar0153's ATB - Yanfly Battle Engine addon script)

Anyway, I ran into a problem using Fomar0153's "YanFly Compatible Customisable ATB/Stamina Based Battle System script" (found here).
As it says, it requires Yanfly's Ace Battle Engine, which I am also using...

The problem: Whenever an enemy uses the "Escape" ability in battle, the game will crash and give me this error:
error.png

Here's line 458 in the script:
458.png

I'm not really sure how to fix this issue. From what I understand from the error message, it seems this method wasn't properly defined? However, only a few lines below, the 'stamina_cost' method is indeed defined:
stamina_cost.png

So... I'm a little lost, to be honest. I recreated the error in a new project with fresh scripts from the sources I provided. The error still appeared. If anyone can take a look at these and try and find the solution, I would be eternally grateful.
Bump. Hope I'm allowed to bump the thread?
Here is a quick fix.
At the end of line 458 from your second screenshot, add if @actions[0]
Here is a quick fix.
At the end of line 458 from your second screenshot, add if @actions[0]
Worked like a charm, thanks.

Original thread: https://forums.rpgmakerweb.com/threads/need-help-fixing-a-bug-when-enemies-escape-fomar0153s-atb-yanfly-battle-engine-addon-script.150507/