[TIMOB-15730] Fixed bug with iOS Simulator and device builds getting stu...

...ck waiting for images to be optimized.