Fix crash in iosImageFromResourceEx when resource is not found.