Fix use-after-free bug causing crash on device (fixes #2)
Fix use-after-free bug causing crash on device (fixes #2)

MobileChromeApps/cordova-plugin-chrome-apps-bootstrap,DanielJoyce/cordova-plugin-chrome-apps-bootstrap,DanielJoyce/cordova-plugin-chrome-apps-bootstrap,MobileChromeApps/cordova-plugin-chrome-apps-bootstrap,DanielJoyce/cordova-plugin-chrome-apps-bootstrap,MobileChromeApps/cordova-plugin-chrome-apps-bootstrap