Fix #9704, correctly set changed as false when nothing is done