Fix crash in malformed file

Bug #101429
1 file changed