[ALLI-2089] Prevent overly long hierarchy modal boxes.