Fixed a crash that was triggered during metadata parsing while trying to parse an invalid media file.