HOTFIX for APD-499: Check that function initOnSvgLoaded exists