Fixed an issue where the app would crash if the file downloaded was corrupted.