timob-14487: Add duplicate check when adding dialogs to activity

testing steps in JIRA. https://jira.appcelerator.org/browse/TIMOB-14487