I've been wondering the same thing myself....Got lucky with a search:
Constitutional Topic: Death of a Presidential Candidate
http://www.usconstitution.net/consttop_pvp.html
In short-> If a presidential candidate dies after the party convention and before the election, particularly before ballots are printed, the party can select a new person to represent the party on the ticket.