svf: improve robustness when processing invalid SVF files