Add sanity check to not delete marks outside the active range.