[master/12] Fix whyrun_safe_ruby_block regression

`whyrun_safe_ruby_block` broke in the 11 changes.

Forward port of #2012