Killed by a defeated hero

Was Heimdall a part of the enemy’s defense? There is currently a visual glitch that heroes that are revived by Heimdall are just visible on the very next turn: