Handled case where onLaunched input is not set

According to https://developer.chrome.com/apps/app_runtime#event-onLaunched, the `launchData` is optional.