genserver: Different hash for current_index

Fix the problem that when an archive is first created
the current and the first year indices have the same key.
2.9.2+dfsg-19
also fail if an exception is thrown