Check that overflowing paragraphs are within indices

Change-Id: I0937753facfa051b4fc6b5d21479855879ba64a1