Please test to make sure that this code does not cause any issue with doing the meridian flip whether the user is using PHD2 or the internal guider. Guiding should still start back up automatically as it did before.
And test that after a meridian flip when using PHD2, whether the user was using auto-star or not using auto-star, that it makes sure the auto-star box is checked before it resumes guiding.