gitweb: improve snapshot error handling