@zoran I have discovered that this occured when I deleted all of the text in a line. In this lesson, one line is nonsense. Clearly the system cannot cope with that. The workaround is to insert a full stop, or any other symbol, so as to preserve the line.