Fixed bug in CheckForChanges that caused exception when removing lines from the beginning.