Fix infinite loop when only --settarget is used

If you only use --settarget then there will always be bugs to
process (overwrite milestone with itself). New code makes sure
you don't loop if you didn't change anything at the last loop.