       currentAssetBundle = pendingAssetBundle
       self.pendingAssetBundle = nil
     }
-
-    startupTimer.startWithTimeInterval(startupTimeoutInterval)
+    
+    startupTimer?.startWithTimeInterval(startupTimeoutInterval)
   }
   
   // MARK: - Notifications

  public func startupDidComplete(command: CDVInvokedUrlCommand) {
    NSLog("startupDidComplete")
    
    startupTimer.stop()
    
    lastKnownGoodVersion = currentAssetBundle.version


      return
    }
    
    if startupTimer == nil {
      startupTimer = METTimer(queue: dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0)) {
        NSLog("Startup timed out")
        self.revertToLastKnownGoodVersion()
      }
    }
  }

