Change hash initialization in Corpus and Document

Just a simple patch to avoid some `if` blocks. :)