corefile: Don't crash on 0-length files [O. Galibert]