fix issue 11770  std.regex.Captures should be convertible to bool