Fix crash in broken files

Bug #102854
1 file changed