Merge "Early exit if the target region is empty" into sc-dev