fix #3877;
Merge pull request #4514 from ihptru/fix3877

do not create empty map on fail to download