do not create empty map on fail to download

fixes #3877;