don't write file if nothing downloaded, fix #3
don't parse None(null in json) result to fix #1