Fix 500 on repo archive download

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>