TIMOB-15725: Fix error where we check for krollApplication before runtime is initialized.

https://jira.appcelerator.org/browse/TIMOB-15725

Test case in Jira.

Please also run https://jira.appcelerator.org/browse/TIMOB-15018 since it was a regression caused by that ticket.