Fix for crash when download tasks cannot be created.