Ye, forgot that actors that is not in the active battle party still counts as being "in the party".
Somehow I took for granted that he was not in the party at all...
Should be possible to check a script call snippet or something, but since I'm not too familiar with MV I'm not sure if it's the same as in VX or Ace :/
$game_party.battle_members.include?($game_actors[x]) - X being the ID of the actor.
is the call I use for Ace, you could try that and see if it works. You set it up excactly like with an ordinary conditional branch, but instead you chose as script call and type it inside
script in the conditional branch options.
Edit: Found a similar thread to yours where
Shaz kindly gave an answer to this, that focused on the MV engine.
The script snippet is:
$gameActors.actor(n).isBattleMember()
Where in this case (n) is the ID of the actor instead.