[TIMOB-13217] fixes dialog_test.js test app

Jira: [https://jira.appcelerator.org/browse/TIMOB-13217](https://jira.appcelerator.org/browse/TIMOB-13217)