fix possible crash on mediainfo parsing