[TIMOB-15544]iOS: Clean out tabs before the rootWindow is removed.

Test case in [JIRA](https://jira.appcelerator.org/browse/TIMOB-15544)