Patch for undefined exception when running lazy load on iOS