[composer] Prevent hangs when using html multi frames with a very small first frame