[ruby-core:123181] [Ruby Bug#21563] Misleading error message when `to_proc` does not return a Proc in an Object used as a &block argument