check packaged app's ondownloadapplied (bug 975921)

New iteration by using `downloadapplied` and resetting the events to `null` based on metropolis by @cvan