The only loophole is that if Barack was Speaker of the House and both the President and Vice President resigned, he could be Acting President. Just another reason to hope that the Republicans don’t throw away the House in November.
The GOPe will absolutely throw away the House. They hate power and responsibility, and only care about money.
So you might be onto something here.