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

Test case in [JIRA](https://jira.appcelerator.org/browse/TIMOB-15544)
backport 0f #5166