Yanfly Action Sequence Pack 3 Camera Error

Hello everyone!
So, I have a somewhat unique predicament that revolves mainly around Yanfly's Action sequence Pack 3 but also involves SumRandomDude's Summon Core.

So, with my basic attack skill (the only skill that currently uses the battle camera), the camera zooms in on the user and target at the same time. This works perfectly fine for every Actor, however the issue comes with the SRD Summons. They function perfectly normal, but when their HP hits zero, they leave the battle. This seems to cause a problem with the camera, because if they're killed by a normal attack, the game will crash because it can't find the height of an object that doesn't exist.

I fully understand the problem here. The summon disappears, and the camera has nothing to zoom in on. However, I don't really know how to work around this.
Each summon is a unique actor, and for the function of special skills to support them, are given a State called "Summon" (state 18) at the end of each turn. Skills that are designed for summons target all allies, and then checks for that state. Right now, I confess that aspect isn't working as planned, but if I could use this state check to make skills work only on summons, is there some way to do the same for the battle camera to prevent this crash?
I 'think' your solution would involve the use of IF conditions within any action sequence where this bug can occur.
https://forums.rpgmakerweb.com/index.php?threads/yanfly-action-sequences-i-if-condition.48757/

You'll have to think of what to check for. Maybe you could check something like:
PHP:
if (target.isAppeared)
 camera stuff
else
 nothing (or reset camera zoom/focus)
end

If you can find something that works, this should solve your problem. It'll be a lot of repetitive work to put this into every existing action sequence of yours but that's the price to pay when dealing with multiple plugins. I've had to do similar things in my project. It can be very worth it sometimes.

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-action-sequence-pack-3-camera-error.103185/