add crash protection
add crash protection

RyanTech/JSPatch,chieryw/JSPatch,ipinka/JSPatch,chieryw/JSPatch,qskycolor/JSPatch,ipinka/JSPatch,ipinka/JSPatch,rob2468/JSPatch,rob2468/JSPatch,bang590/JSPatch,bang590/JSPatch,chieryw/JSPatch,SuperSG/JSPatch,rob2468/JSPatch,albert438/JSPatch,ipinka/JSPatch,ipinka/JSPatch,qskycolor/JSPatch,bang590/JSPatch,SuperSG/JSPatch,rob2468/JSPatch,RyanTech/JSPatch,chieryw/JSPatch,SuperSG/JSPatch,bang590/JSPatch,SuperSG/JSPatch,RyanTech/JSPatch,RyanTech/JSPatch,albert438/JSPatch,bang590/JSPatch,chieryw/JSPatch