Fix a segfault when reading faulty Ogg/FLAC files.

Fixes #483.
Also, there is identical code just below. If we add the check here, it would be good to also add it there. But I wonder if it's possible to detect this kind of error earlier in Ogg packet parsing.