Clamp display duration to a maximum of 5 seconds.

If an exceptionally long display string were used, the HUD could
remain onscreen for quite a long time otherwise.