Do not crash on invalid files

Bug #93476
1 file changed