A ballot properly cast by a voter who dies before the ballot is canvassed shall be counted in full unless a law or regulation requires that the ballot be fully or partially rejected for a reason unrelated to the death of the voter.