[ruby-core:117191] [Ruby master Bug#20225] Inconsistent behavior of regex matching for a regex has a null loop