[ruby-core:117800] [Ruby master Bug#20421] String#index and String#byteindex don't clear `$~` when offset > size (or bytesize)