Were they stunned as in leaned forward and inactive like after being hit by a rocket, or stunned as in the usual stun effect where they're just slowed? If it's the latter, they should not be taking damage as far as I know. If you stun them while they're leaned forward and vulnerable, it's possible that the vulnerability timer expired as normal, but their recovery animation was slowed by the stun effect.
They probably shouldn't be vulnerable to any status effect, given the nature of the battle.