[TIMOB-18031] iOS: Fix all misc and logic type errors in static analyzer

Remaining misc and logic errors should be removed.
JIRA: https://jira.appcelerator.org/browse/TIMOB-18031
You do not need the `if` block. Returning `self` is sufficient