src: make MakeCallback() check can_call_into_js before getting method
There is a check for this in the inner MakeCallback()
function
called by it, but since the Get()
call here can also result in a
call into JS, we should ideally check the flag before that.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines