[IOS] fix ios5+ crash, last fix for this has wrong order code during merge.
Merge pull request #2424 from ulion/fix_ios_image_crash_bad_merged_code

[IOS] fix ios5+ crash, last fix in 2411 has wrong code during merge.