update shard: fix possible lua crash

(update pr-downloader, too: some cppcheck warnings)