And note that the linked analysis by Seligman is only correct in the limit of infinitesmal changes in the Sun's mass, which they fail to mention in their analysis. The analysis is incorrect if the Sun's mass changes by a significant amount, one cannot analyze that situation by saying that the planet then has the mechanical energy it had before, minus the change in potential energy, that's pretty much make believe physics. You can tell the analysis is wrong in general if you simply add a lot of mass instead of removing a little, and note the answer makes no sense. The correct way to do the analysis in general is to take their requirement that the potential energy must be -2 times the kinetic energy, which is correct, and couple it to the requirement of conservation of angular momentum of the Earth's orbit. Then you can include any mass change you like, the angular momentum is much harder to change than the mechanical energy of the Earth's orbit.