Ho-lee-shit…
That is a very good question. What would happen if Obama was an invalid President? It goes to the runner up, logically. As such, No_Name will be retconned as POTUS during that time.
I… Think? We are kind of in uncharted territory here as far as legal precedent and probably even written law.