Update that avoid crash during load resource which serialize by flat buffers
Merge pull request #9540 from pipu/avoid_crash_during_load_resource_with_flatbuffers

Update that avoid crash during load resource which serialize by flat buffers.