[orc-rt] Fix UB in IntervalMap::erase before first range. (#248813)
If KS preceded every range in a non-empty map then upper_bound returned
begin(), and erase called std::prev on it. Bail out in that case
instead. This check subsumes the existing empty-map check, which is
removed.
The new unit test detects the original bug when built with
AddressSanitizer (stack-buffer-overflow).