Luna Engine Error

Hey, everyone. I'm running into an recurring error with Luna Engine. Whenever I remove an individual actor from the party during battle (either with Yanfly's party script or an escape command, I get this message:

Battle Luna:369:in `index': undefined method `index' for nil:NilClass (NoMethodError)

I've tried it in a clean project to no avail. Any help would be much appreciated!
Can you share that clean project with me?
I'm just not sure how you are using yanfly party to access the party menu in battle. I know other scripts do that. I get errors in my game trying to do that, but it's not with luna engine.

Original thread: https://forums.rpgmakerweb.com/threads/luna-engine-error.132852/