Fixed process_a_leaf bug (or fragile API usage) in erase_range.cc.