fixed NPE when downloading existing returned 304