fix(ChangeDetector): fix issues with handling empty ranges

collapse the 2*2 lines into 2 lines ?