Also, what if the new PM has to pass through general elections? You might end up having someone which promises to trigger article 50 and someone who does not. A second referendum.
That shouldn't be necessary (the Conservatives have an outright majority, so their new leader should be able to form a government), but, yeah, it would significantly complicate things (especially if Cameron had triggered Article 50 before leaving.)