Found and fixed a crashing bug related to failed download requests.

Change-Id: Ic5aad9e0e97e3809e20700065efc1e09556195d2