PE: fix if PE header is incomplete and is at the end of file