Allow to reset accession number to 0, fixes #4604