Fix crash on broken file

Fixes bug #101366
1 file changed