Well, there's no rule that voids a valid vote if a person dies before the polls close. If my early vote counts, then so does every other validly cast vote. As long as the voter was the one who cast the vote, it should count. I mean, it's not any different than a parson dying minutes after casting their vote on election day. Both are valid.