Fix bug: For unknown reason, some Document don't has hash.