Don't assume empty SourceText points to the full source
Summary:
Do not rely on the invariant that SourceText is constant across
forward/backward search in `line_break_map.ml`, since **empty**
substrings do *not* belong to parsed text in the Rust implementation.
Therefore, if the underlying string's length has changed between
two subsequent calls to `offset_to_file_pos_triple`, we need to
reset `curr_index` to avoid "index out of bounds" exception.
Reviewed By: shiqicao
Differential Revision:
D15525250
fbshipit-source-id:
49c5af1bf16dc7133e3c79e984f255dac0640efa