Fix __repr__ when MediaFormatInfo().duration is None

For some videos (e.g. all swf files) duration is None