refactoring: make sure downloadMaps doesn't get a null cache

If downloadMaps cannot get a null cache in the first place, the null
check is no longer needed.