EZP-22817: Error running legacy scripts

Reference error on ezpKernelHandler instances in Kernel\Loader.
Merge pull request #849 from ezsystems/EZP-22817-legacy_scripts

EZP-22817: Error running legacy scripts