Use the block extend only if the block actually exists.
The get_sh_global() function now uses also get_global().
Properly extend the function calls with the context parameter.