ruby-ts-mode: Don't reindent when "class" or "def" is under "ERROR"

* lisp/progmodes/ruby-ts-mode.el (ruby-ts--indent-rules):
Don't reindent when "class" or "def" is under "ERROR" (bug#61017).
6 jobs for emacs-29 in 139 minutes and 19 seconds (queued for 1 minute and 58 seconds)
Status Job ID Name Coverage
  Build Images
passed #62158
build-image-inotify

01:12:03

 
  Normal
passed #62159
test-all-inotify

00:47:05

 
  Platform Images
passed #62160
build-image-gnustep

01:23:10

 
  Platforms
passed #62161
test-gnustep

00:02:55

 
  Native Comp Images
passed #62162
build-native-comp-speed2

01:36:50

 
  Native Comp
passed #62163
test-native-comp-speed2

00:41:58