Fix a NPE where, while running the unit tests, a download is not found Change-Id: I7c407112e5cfe7c39ceace25c48c6eba4f5dcfbe