Remove CHUNK argument from open, in checksum. BZ 1058297.
Fix traceback when the history dir is empty. BZ 875610