Yes, I agree that the intent of the rules is clearly to determine if the PC group as a whole won an encounter, and if so, reward each member with the XP as calculated when those members entered the encounter. Death, while unfortunate, should hardly be regarded as a type of failure for heroes... 
Besides, since the point here is that they are brought back from the dead, the “failure” might amount to no more than missing a few seconds of a fight followed by some downtime- wherever D&D people go when they die, which is tremendously unclear to me, as is why they would want to come back...but I’m drifting off.
House ruling is always good, but I don’t think the rules are unclear on the basic question here, but instead quite explicit. And the whole flavor of the game should, to me, make it clear that a heroic death might earn more of whatever “XP” is than a not-quite-so-heroic living.

Besides, since the point here is that they are brought back from the dead, the “failure” might amount to no more than missing a few seconds of a fight followed by some downtime- wherever D&D people go when they die, which is tremendously unclear to me, as is why they would want to come back...but I’m drifting off.
House ruling is always good, but I don’t think the rules are unclear on the basic question here, but instead quite explicit. And the whole flavor of the game should, to me, make it clear that a heroic death might earn more of whatever “XP” is than a not-quite-so-heroic living.