Fixed text-only frames in MediaTablet

Text-only frames could previously be given a zero duration; now we get
the maximum duration of all elements, regardless of whether they're
media or not