Fix crash when gd-script _init fail