Hm, well looking at the earliest examples of men who might of been elected president who died shortly thereafter - I suppose there’s William Crawford living just a little longer, then managing to get elected by the House in 1825; looking at the earliest party conventions, it seems William Henry Harrison, who it turned out wasn’t in the best health, stood a fair chance of being nominated by the Whigs in 1839.