Fixed a crash when downloading a publication and exiting app before finish