Fix crash comparing empty file against nonempty file.