[core] fix bug in executing ext::scratch_read causing panic

parent 7a35257f
Pipeline #56183 failed with stages
in 1 minute and 5 seconds