Fix crash when starting download and then leaving view before download finishes.