Fix a segfault when reading faulty Ogg/FLAC files.

Fixes #483.