[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
This is incorrect. We are initializing later with `initWithTarget:module`. You should move the `pageContext` initialization inside the `if` block.