fix(ChangeDetector): fix issues with handling empty ranges

Would be great to add a comment on the  3 following methods