Fix halContiguousRegions crash on insertions