MatchData#begin and MatchData#end return nil with no match for index.