Fixes mmap error when reading 0-byte files, issue #6321
Merge pull request #6329 from cbecker/master

Fixes mmap error when reading 0-byte files, issue #6321