Fix crash when a download is interrupted

Change-Id: I83fdd3203c12612a369e182b35ce82b38b1ec020
Merge branch 'kitkat' of github.com:AOSPA/android_packages_apps_ParanoidOTA into kk4.4