[TIMOB-15414] Use nil not empty string to clear title

Fixes regression caused by PR #4801

Test case is in [JIRA](https://jira.appcelerator.org/browse/TIMOB-15414)