MOBILE-248 Fixing deviceready Phonegap's event doesn't fire correctly