Add a spec for String#[]= [regexp, index]

When the index points to unmatched captures.
Fix String#[]= [regexp, index]

When the index points to unmatched captures.
Merge pull request #2314 from kachick/fix-string-element_set_with_regexp-index

String#[]= [regexp, index] raises an IndexError when the index points to unmatched optional captures