Fix a tasks.py crash if there are no DownloadLocations in the DB.