fix(record-range): fixes bug when disabling empty ranges.

if it is not present then the last is not present. Possible optim ?