:bug: Fix potential null reference callback invokation
:bug: Fix potential null reference callback invokation

Fixes #11328

stinsonga/atom,florianb/atom,brumm/atom,sotayamashita/atom,wiggzz/atom,AlexxNica/atom,bolinfest/atom,Arcanemagus/atom,Austen-G/BlockBuilder,Mokolea/atom,helber/atom,andrewleverette/atom,andrewleverette/atom,tjkr/atom,bj7/atom,Ingramz/atom,liuderchi/atom,Ingramz/atom,FIT-CSE2410-A-Bombs/atom,ardeshirj/atom,decaffeinate-examples/atom,rlugojr/atom,me-benni/atom,decaffeinate-examples/atom,ashneo76/atom,rlugojr/atom,bsmr-x-script/atom,xream/atom,stinsonga/atom,bsmr-x-script/atom,AlexxNica/atom,ardeshirj/atom,daxlab/atom,bj7/atom,bolinfest/atom,bsmr-x-script/atom,gontadu/atom,liuderchi/atom,Austen-G/BlockBuilder,atom/atom,wiggzz/atom,t9md/atom,kevinrenaers/atom,ashneo76/atom,helber/atom,hellendag/atom,stinsonga/atom,AdrianVovk/substance-ide,xream/atom,hellendag/atom,florianb/atom,Mokolea/atom,Ingramz/atom,Austen-G/BlockBuilder,CraZySacX/atom,daxlab/atom,Austen-G/BlockBuilder,PKRoma/atom,sotayamashita/atom,AdrianVovk/substance-ide,florianb/atom,kevinrenaers/atom,andrewleverette/atom,Austen-G/BlockBuilder,kevinrenaers/atom,decaffeinate-examples/atom,AlexxNica/atom,tjkr/atom,PKRoma/atom,brumm/atom,helber/atom,xream/atom,florianb/atom,stinsonga/atom,bolinfest/atom,gontadu/atom,brettle/atom,liuderchi/atom,atom/atom,AdrianVovk/substance-ide,gontadu/atom,t9md/atom,CraZySacX/atom,me-benni/atom,PKRoma/atom,FIT-CSE2410-A-Bombs/atom,bj7/atom,rlugojr/atom,ashneo76/atom,FIT-CSE2410-A-Bombs/atom,me-benni/atom,liuderchi/atom,Mokolea/atom,wiggzz/atom,ardeshirj/atom,brettle/atom,Arcanemagus/atom,decaffeinate-examples/atom,daxlab/atom,florianb/atom,t9md/atom,Arcanemagus/atom,Austen-G/BlockBuilder,hellendag/atom,sotayamashita/atom,brumm/atom,brettle/atom,CraZySacX/atom,atom/atom,tjkr/atom